#define _CRT_SECURE_NO_WARNINGS 1
#include <iostream>
#include <string>
#include <vector>
#include <unordered_map>
#include <algorithm>
#include <map>
using namespace std;

int main() {
    int num;
    cin >> num;
    string s = "";
    while (num)
    {
        int tmp = num % 10;
        if (tmp % 2 == 0) s += '0';
        else s += '1';
        num /= 10;
    }
    reverse(s.begin(), s.end());
    int tmp = stoi(s);
    cout << tmp;
}